#ifndef __KPROBE_H
#define __KPROBE_H

#define TASK_COMM_LEN 16
#define MAX_FILENAME_LEN 127

#ifndef MAX_STACK_DEPTH
#define MAX_STACK_DEPTH 128
#endif

typedef unsigned long long stack_trace_t[MAX_STACK_DEPTH];

struct kprobe_test_event {
	int pid;
	int ppid;
	int cpu_id;
	char comm[TASK_COMM_LEN];
	unsigned int kstack_sz;
	unsigned int ustack_sz;
	stack_trace_t kstack;
	stack_trace_t ustack;
};

int kprobe_test_release();
void kprobe_test_run();
int kprobe_test_open(int argc, char* argv[]);

#endif